'use strict';

function get_intersection(collection_a, collection_b) {
 let result=[];
 for(let item1 of collection_a){
   for(let item2 of collection_b){
     if(item1===item2){
       result.push(item1);
     }
   }
 }
 console.log(result);
 return result;
}
get_intersection( [10, 27, 28, 19, 5],[5, 78, 28, 19, 23]);
module.exports = get_intersection;
